home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
A-COMAL Series
/
(k)aac.d64
/
paddle.proc
< prev
next >
Wrap
Text File
|
2007-02-28
|
554b
|
19 lines
9000 //DELETE "0:PADDLE.PROC"
9010 // BY UNICOMAL WITH CAPTAIN COMAL
9020 //LIST "0:PADDLE.PROC"
9030 // UPDATED VERSION - MATCHES 2.0
9040 PROC PADDLE(PAIR,REF X,REF Y,REF FIRE1,REF FIRE2) CLOSED
9050 CIA:=56320
9060 SID:=54272
9070 POKE CIA+13,1 //DISABLE TIMER A INTERRUPT
9080 DDRA:=PEEK(CIA+2)
9090 POKE CIA+2,192
9100 POKE CIA,64*PAIR
9110 X:=PEEK(SID+25); Y:=PEEK(SID+26)
9120 POKE CIA+2,DDRA
9130 POKE CIA+13,129 //ENABLE TIMER
9140 MEM:=PEEK(CIA+2-PAIR)
9150 FIRE1:=1-((MEM MOD 16) DIV 8)
9160 FIRE2:=1-((MEM MOD 8) DIV 4)
9170 ENDPROC PADDLE